package com.lhd.egweibo3.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author lhd
 * @date 2024/4/25
 * @apiNote
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    NOT_LOGIN(1000, "未登录"),
    LOGIN_SUCCESS(1001, "登陆成功"),
    PASSWORD_ERROR(1002, "密码错误"),
    USERNAME_ERROR(1003, "用户名错误"),
    USERNAME_ALREADY_EXIST(1004, "用户名被占用"),
    OPERATION_SUCCESS(2001,"操作成功" ),
    OPERATION_FAILED(2002,"操作失败" );
    //顺序不能反 state在前 下面这个顺序不能反 state就要在上面
    private Integer state;
    private String message;



}
